<?php
// +----------------------------------------------------------------------
// | 小牛Admin
// +----------------------------------------------------------------------
// | Website: www.xnadmin.cn
// +----------------------------------------------------------------------
// | Author: dav <85168163@qq.com>
// +----------------------------------------------------------------------

namespace app\common\model;

use think\Model;

class SupplierModel extends Model
{
    protected $name = 'supplier';
    public function getStatusAttr($value,$data)
    {
        $arr = [
            '1' => '启用',
            '2' => '禁用',
        ];
        return $arr[$data['status']];
    }

}